<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            角色列表
            <small>it all starts here</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="{:url('/admin/index/index')}"><i class="fa fa-dashboard"></i> 控制台</a></li>
            <li><a href="{:url('/admin/user/role')}">角色管理</a></li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="box">
            <div class="box-header with-border">
                <h3 class="box-title">角色列表</h3>
                <a href="/admin/user/add_admin" class="btn  btn-primary pull-right"><i class="fa fa-plus"></i> 添加角色</a>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
                <table class="table table-bordered center"><tbody>
                <tr>
                    <th style="width: 60px">
                        <label for="checkall" class="btn btn-default">
                            <input type="checkbox" value="" id="checkall" class="pointer">
                            全选
                        </label>
                    </th>
                    <th>角色</th>
                    <th>角色描述</th>
                    <th style="width: 100px;text-align: center">操作</th>
                </tr>

                <?php foreach($role as $item){?>
                <tr>
                    <td>
                        <label class="lb">
                            <input type="checkbox" class="cbox"  value="" name="idarr[]">
                        </label>
                    </td>
                    <td><?php echo $item['name']; ?></td>
                    <td><?php echo $item['role_desc']; ?></td>
                    <td>
                        <a href="#" class="btn btn-info btn-sm"><i class="fa fa-edit"></i></a>
                        <a href="#" class="btn btn-danger btn-sm"><i class="fa fa-trash-o"></i></a>
                    </td>
                </tr>
                <?php } ?>
                </tbody></table>
            </div>
            <!-- /.box-body -->
            <div class="box-footer clearfix">
                <button type="button" class="btn btn-danger"><i class="fa fa-trash-o"></i> 删除</button>
            </div>
        </div>
    </section>
</div>